package ${packageName}.service.impl;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${packageName}.dao.${IDaoName};
import ${packageName}.service.${IServiceName};
import ${packageName}.utils.ExcelUtil;

@Service
public class ${serviceName} extends BaseService implements ${IServiceName}{

	
	private ${IDaoName} dao;

	@Autowired
	public ${serviceName}(${IDaoName} dao) {
		super(dao);
		this.dao = dao;
	}
	
	@Override
	public void exportExcel(HttpServletResponse response) {

		// 获取头部信息
		String[] headList = new String[] {<#list selectColumnList as data> "${data.columnsCn}"<#if data_has_next>,</#if></#list>};

		String[] describeList = new String[] {<#list selectColumnList as data> "${data.serviceTextStr}"<#if data_has_next>,</#if></#list>};

		ExcelUtil.exportExcel(response, dao, headList, describeList);
	}
}
